// 老的 text
// 新的 array

import { h,ref } from '../../lib/guide-leo-vue.esm.js'

const prevChildren = "prevChildren"
const nextChildren = [h("p",{},"A"),h("p",{},"B")]

export default {
    setup() {
       const isChange = ref(false)
       window.isChange = isChange
       return {
        isChange
       } 
    },
    render() {
        const self = this
        return self.isChange === true ? h("div",{},nextChildren) : h("div",{},prevChildren)
    },
}